package com.sinven.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * NideshopGoodsGallery entity. @author MyEclipse Persistence Tools
 */
/**
 * 李志伟
 * 反向生成
 */
@Entity
@Table(name = "nideshop_goods_gallery", catalog = "csf")
public class GoodsGallery implements java.io.Serializable {

    //主键ID
    private Integer id;
    //商品ID
    private Integer goodsId;
    //图片路径
    private String imgUrl;
    //描述
    private String imgDesc;
    //排序
    private Integer sortOrder;

    // Constructors

    /** default constructor */
    public GoodsGallery() {
    }

    /** full constructor */
    public GoodsGallery(Integer goodsId, String imgUrl, String imgDesc,
                        Integer sortOrder) {
        this.goodsId = goodsId;
        this.imgUrl = imgUrl;
        this.imgDesc = imgDesc;
        this.sortOrder = sortOrder;
    }

    // Property accessors
    @Id
    @GeneratedValue
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "goods_id")
    public Integer getGoodsId() {
        return this.goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    @Column(name = "img_url")
    public String getImgUrl() {
        return this.imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    @Column(name = "img_desc")
    public String getImgDesc() {
        return this.imgDesc;
    }

    public void setImgDesc(String imgDesc) {
        this.imgDesc = imgDesc;
    }

    @Column(name = "sort_order")
    public Integer getSortOrder() {
        return this.sortOrder;
    }

    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }

}